from . import views
from django.urls import path

app_name = 'main'

urlpatterns = [
    path('', views.index, name='index'),
    path('<int:c_id>/', views.category, name='category'),
    path('<int:c_id>/<int:t_id>/', views.theme, name='theme'),
    path('detail/<int:book_id>', views.detail, name='detail'),
    path('detail/<int:book_id>/<int:at_id>', views.article, name='article'),
    # path('toggle-favorite/<int:book_id>/', views.toggle_favorite, name='toggle_favorite'),
    path('favorite/<int:book_id>/', views.favorite, name='favorite'),

    path('download/<int:book_id>', views.download, name='download')

]